"""
__project__='伍娟'
__file_name__=='第三次作业'
__author__='wwj'
__time__='2021/4/5 20:13'
__product_name__=PyCharm
# code is far away from bugs with the god animal protecting
    I love animals. They taste delicious.
              ┏┓      ┏┓
            ┏┛┻━━━┛┻┓
            ┃        ┃
            ┃  ┳┛  ┗┳  ┃
            ┃      ┻      ┃
            ┗━┓      ┏━┛
                ┃      ┗━━━┓
                ┃  神兽保佑    ┣┓
                ┃　永无BUG！   ┏┛
                ┗┓┓┏━┳┓┏┛
                  ┃┫┫  ┃┫┫
                  ┗┻┛  ┗┻┛
"""
"""
猜拳游戏
"""
import random
player = int(input("请输入要出的项石头（0）剪刀（1）布（2）:"))
computer = random.randint(0, 2)
print("player=%d,compuer=%d" % (player, computer))
if (player == 1 and computer == 2) or (player == 2 and computer == 0) or (player == 0 and computer == 1):
    print("=========玩家赢了=========")
elif (player == computer):
    print("=========平局=========")
else:
    print("=========玩家输了=========")